a) I joined this course because I am interested in the more practical aspects of DMIS. AI can be used as a tool to create and analyse information in many areas.
b) I have prior experience with Python and a little AI through the computer science classes I took last year.
c) I expect to learn:
message1 = "Hello, World!"
print (message1[0])
H
from IPython.display import *
YouTubeVideo("tK0vp8LlDiM")
import webbrowser #importing a library
import requests #importing a library
print("Shall we hunt down an old website?") #printing intro message
site = input("Type a website URL: ") #assigning a value to a variable
era = input("Type year, month, and date, e.g., 20150613: ") #assigning a value to a variable
url = "http://archive.org/wayback/available?url=%s×tamp=%s" % (site, era) #assigning a value to a variable
response = requests.get(url) #assigning a value to a variable
data = response.json() #assigning a value to a variable
try:
old_site = data["archived_snapshots"]["closest"]["url"] #assigning a value to a variable
print("Found this copy: ", old_site) #printing url of the search result
print("It should appear in your browser.") #printing message
webbrowser.open(old_site)
except:
print("Sorry, could not find the site.") #message to print if no result found
Shall we hunt down an old website?
from IPython.display import Image
Image ("picture1.jpg")
from IPython.display import Audio
Audio ("audio1.mid")
Audio ("GoldbergVariations_MehmetOkonsar-1of3_Var1to10.ogg")
#This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
#You are free:
#• to share – to copy, distribute and transmit the work
#• to remix – to adapt the work
#Under the following conditions:
#• attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
#• share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
#The original ogg file was found at the url:
#https://en.wikipedia.org/wiki/File:GoldbergVariations_MehmetOkonsar-1of3_Var1to10.ogg